<template>
  <div id="app">
    <!-- <div><button @click="back">返回home</button>
      <button @click="login">重新登录</button>
    </div> -->
    <router-view />
  </div>
</template>

<script>
import {
  getUserInfo,
  setUserInfo,
  logout
} from '@/utils/auth'
export default {
  name: 'App',
  methods: {
    back() {
      this.$router.push({ path: "/home", query: { token: getUserInfo() } });

    },
    login() {
      logout()
      this.$router.push({ path: "/login" });

    }
  }
}
</script>
